package com.dotnet.modules.compact.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dotnet.modules.compact.entity.ContractType;
import com.dotnet.modules.compact.mapper.ContractTypeMapper;
@Service
public class ContractTypeServiceImpl implements ContractTypeService {
	
	@Autowired
	private ContractTypeMapper contractTypeMapper;
	@Override
	public ContractType queryOne(ContractType record) {
		// TODO Auto-generated method stub
		return contractTypeMapper.selectOne(record);
	}

	@Override
	public List<ContractType> queryAll(ContractType record) {
		// TODO Auto-generated method stub
		return contractTypeMapper.select(record);
	}

	@Override
	public int queryCount(ContractType record) {
		// TODO Auto-generated method stub
		return contractTypeMapper.selectCount(record);
	}

	@Override
	public ContractType queryByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return contractTypeMapper.selectByPrimaryKey(key);
	}

	@Override
	public int add(ContractType record) {
		// TODO Auto-generated method stub
		return contractTypeMapper.insert(record);
	}

	@Override
	public int addSelective(ContractType record) {
		// TODO Auto-generated method stub
		return contractTypeMapper.insertSelective(record);
	}

	@Override
	public int delete(ContractType record) {
		// TODO Auto-generated method stub
		return contractTypeMapper.delete(record);
	}

	@Override
	public int deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return contractTypeMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int updateByPrimaryKey(ContractType record) {
		// TODO Auto-generated method stub
		return contractTypeMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKeySelective(ContractType record) {
		// TODO Auto-generated method stub
		return contractTypeMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int queryCountByExample(ContractType example) {
		// TODO Auto-generated method stub
		return contractTypeMapper.selectCountByExample(example);
	}

	@Override
	public List<ContractType> queryByExample(ContractType example) {
		// TODO Auto-generated method stub
		return contractTypeMapper.selectByExample(example);
	}

	
}
